﻿@model S4Store.Domain.ImproveGuide
@{
    ViewBag.Title = "Detail";
    Layout = null;
    S4Store.Domain.Administrator CurrentUser = (S4Store.Domain.Administrator)ViewBag.CurrentUser;
}
<div style=" height:100%; width:100%; overflow:hidden" class="verticalSplitContainer">
    <div class="pageFormContent" style="overflow: auto;" ratio="*">
        <table style="width:100%">
            <tr>
                <td width="10%">建议时间：</td>
                <td width="90%">
                    @Model.ImproveDate.ToString("yyyy-MM-dd")
                </td>
            </tr>
            <tr>
                <td width="10%">来自：</td>
                <td width="90%">
                    @Model.ReferenceDesc
                </td>
            </tr>
            <tr>
                <td width="10%">改善建议内容：</td>
                <td width="90%" class="htmlContent">
                    @Html.Raw(Model.ImproveContent.Replace("\r", "<br />"))
                </td>
            </tr>
            @if (CurrentUser.Position == S4Store.Domain.Position.AftersalesManager 
                || CurrentUser.Position == S4Store.Domain.Position.MarketingManager 
                || CurrentUser.Position == S4Store.Domain.Position.SalesManager)
            {
                <tr>
                    <td width="10%"></td>
                    <td width="90%">
                        <div style="padding: 20px 0"><a href="@Url.Action("Add", "Actionplan", new {improveId = Model.Id})"  target="dialog" backtype="html" style="color: #0000ff"><img src="@Url.Content("~/Resources/project/v3/zzxdjh.png")"/></a></div>
                    </td>
                </tr>
            }
        </table>
	
    </div>
</div>


